package com.wuhongyu.base;

import org.springframework.data.domain.Page;
import org.springframework.transaction.annotation.Transactional;

/**
 * Service层的Base接口
 * @param <E>
 */
public interface BaseService<E> {

    Page<E> findAll(E e,Integer number);

    @Transactional
    void save(E e);

    @Transactional
    void delete(Integer id);

    E findOne(Integer id);
}
